<script>
	export default {
		onLaunch: function() {
			// #ifdef MP-WEIXIN
			if (wx.canIUse('getUpdateManager')) {
				const updateManager = wx.getUpdateManager()
				updateManager.onCheckForUpdate(function(res) {
					console.log(res)
					if (!res.hasUpdate) return;
					updateManager.onUpdateReady(function() {
						updateManager.applyUpdate()
					})
					updateManager.onUpdateFailed(function() {
						wx.showModal({
							title: '新版本更新失败',
							content: '请在微信主界面下拉删除当前小程序，重新从公众号进入即可'
						})
					})
				})
			} else {
				wx.showModal({
					title: '提示',
					content: '当前微信版本过低，无法使用该功能，请升级到最新微信版本后重试。'
				})
			}
			// #endif
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
	.is-empty {
		display: flex !important;
		width: 326rpx;
		height: 176rpx;
		margin: 200rpx auto;
	}

	@font-face {
	  font-family: 'iconfont';  /* Project id 4253735 */
	  src: 
	       url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAATAAAsAAAAACewAAARyAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHFQGYACEAgqFOIUdATYCJAMkCxQABCAFhGcHgSQb+wjIDiVVkeiYjQEAQDz8tx/tvpkvhnlS76YNT5pMGnGXaNoCp5NJbEIlEUl/KM+a4gBnZRbaNJmgmmwyWTB75/bwEl983Zt+Fmf/hP//XuUs/7HoupkPAG7mmp30qKdWL1CAuqfVClTQ5cECF0CrADtboJcuvkWgs0Ux9b7qxk4w+xqJPWA5LX9vUA3GNZ4lwVTNq5jgh8ZRsTcW4omSdDfdxePs6+OvbTGVpMz8Vx25UEWDi2/AX59GGRUgv3Nnv3U4OaFExoYL88ez6egDkIvqBhrdUHvhPGBmINDw4/NyfhT8RL/OfHjw0ff/f4ft3QhrrFqHaaBSKNU3+4+XZKLiWwfwbtUafoCIUPEjh1Dwo4BQ8hMRan6dIQR/HhAa/noJib8+rwxOa5994vprII6Bt687CSEn6ur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ff2'),
	       url('//at.alicdn.com/t/c/font_4253735_q4itz026jck.woff?t=1695275250642') format('woff'),
	       url('//at.alicdn.com/t/c/font_4253735_q4itz026jck.ttf?t=1695275250642') format('truetype'),
	       url('//at.alicdn.com/t/c/font_4253735_q4itz026jck.svg?t=1695275250642#iconfont') format('svg');
	}
	
	/* 在线链接服务仅供平台体验和调试使用，平台不承诺服务的稳定性，企业客户需下载字体包自行发布使用并做好备份。 */
	@font-face {
	  font-family: "siyuan-font";font-weight: 500;src: url("//at.alicdn.com/wf/webfont/FzfFRvup42b5/N3t3wialjbMK.woff2") format("woff2"),
	  url("//at.alicdn.com/wf/webfont/FzfFRvup42b5/bCpRC1onZ7VF.woff") format("woff");
	  font-display: swap;
	}
	
	.siyuan-font{
		font-family: "siyuan-font" !important;
		// font-size: 16px;
	}

	.container {
		display: flex;
		box-sizing: border-box;
		flex-direction: column;
	}
	
	.title {
			font-size: 28rpx;
			font-weight: 600;
			color: #333333;
			line-height: 40rpx;
		}

	.iconfont {
		font-family: "iconfont" !important;
		font-size: 16px;
		font-style: normal;
		/* #ifndef APP-NVUE */
		-webkit-font-smoothing: antialiased;
		-webkit-text-stroke-width: 0.2px;
		-moz-osx-font-smoothing: grayscale;
		/* #endif */
	}

	@import "common/flex.scss";
	@import "uview-ui/index.scss"
</style>